package com.xiaostudy.service;

import com.xiaostudy.mapper.userMapper;
import com.xiaostudy.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    public userMapper mapper;

    @Override
    public User getUser(String usercount, String password) {
        return mapper.GetUser(usercount, password);
    }

    @Override
    public User getUserByUserCount(String usercount) {
        return mapper.getUserByUserCount(usercount);
    }
}
